# Contributor: Nicolas Lorin <androw95220@gmail.com>
# Maintainer: Nicolas Lorin <androw95220@gmail.com>
pkgname=bgpq4
pkgver=1.11
pkgrel=0
pkgdesc="bgp filtering automation tool"
url="https://github.com/bgp/bgpq4"
arch="all"
options="!check" #no test suite
license="BSD-2-Clause"
makedepends="autoconf automake libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/bgp/bgpq4/archive/refs/tags/$pkgver.tar.gz"

prepare() {
	default_prepare
	./bootstrap
}

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0e7dbe450ab38b69675c0c7ecd6e06c8122d6d39902495f69c9722eb422337d90bf026bb0584e6f8990402cbd9c1f0e02d7b389aee9b70bad05fce431942c929  bgpq4-1.11.tar.gz
"
